#include <stdio.h>
#include "sqstack.h"

int main()
{
	sqstack L;
	sqdata a[] = {1,3,5,7,9}, j;
	int i;
	init_stack(&L);
	for(i = 0 ; i < sizeof(a)/sizeof(sqdata) ; i++)
		push(&L,a[i]);
    i = stack_length(&L);
    printf("%d\n ", i);
	display(&L);
    get_top(&L, &j);
	printf("%d\n ",j);
	pop(&L, &j);
	printf("%d\n ",j);

	return 0;
}
